<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>导入订单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
    <div class="layui-form layuimini-form" lay-filter="form1">

        <div class="layui-form-item">
            <label class="layui-form-label">文件</label>
            <div class="layui-input-block">
                <input type="file" id="import-file" name="excelfile" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">sheet页</label>
            <div class="layui-input-block">
                <select lay-filter="sheetNames" id="sheetNames" name="excelsheet">
                </select>
            </div>
        </div>

    </div>

    <div class="layui-form layuimini-form" lay-filter="form2">
        <div class="layui-form-item">
            <label class="layui-form-label required">经销商</label>
            <div class="layui-input-block">
                <select lay-filter="dealer_id" lay-verify="required" lay-reqtext="请选择经销商" id="dealer_id" name="dealer_id" class="layui-input">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">规则映射</label>
            <div class="layui-input-block">
				<table class="layui-table">
					<thead>
						<tr>
							<th>系统字段</th>
							<th>导入字段</th>
						</tr>
					</thead>
					<tbody id="mapping">
                        <tr>
                            <td>订单编号</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="order_num" name="order_num" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>货品名称</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="goods" name="goods" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>规格名称</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="goods_sku" name="goods_sku" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>货品数量</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="sum_goods" name="sum_goods" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>收货人</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="mem_name" name="mem_name" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>手机号</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="mem_phone" name="mem_phone" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>收货地址</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="detailaddress" name="detailaddress" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>优惠</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="offers" name="offers" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>邮费</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="postage" name="postage" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>客服备注</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="remark" name="remark" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>客户备注</td>
                            <td>
                                <div class="layui-form-item" lay-filter="maprules">
                                    <div class="layui-input-block">
                                        <select id="remark1" name="remark1" class="import">
                                        </select>
                                    </div>
                                </div>
                            </td>
                        </tr>
					</tbody>
				</table>
            </div>
        </div>
    
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
            </div>
        </div>
    </div>
</div>
<script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="../js/xlsx.core.min.js" charset="utf-8"></script>
<script src="../js/Order_import.js" charset="utf-8"></script>
</body>
</html>